import random
from collections import Counter
random_numbers = [random.randint(0, 9) for _ in range(100)]
average = sum(random_numbers) / len(random_numbers)

counts =Counter(random_numbers)

print("随机整数产专：", random_numbers)
print("平均值：", average)
print("每个数的出现次数：")
for number in range(10):
    count = counts[number]
print(number,":", count)